$(function() {
    var hgS1 = new selectSwiper({
        el: '.select_box1',
        mustSelect: true,
        data: ['男士', '女士'],
        init: function(index) {
            if (index !== -1) {
                $('.btn1').val(this.data[index]);
            }
        },
        okFunUndefind: function() {
            //alert('必须选择一项');
            return false;
        },
        okFun: function(index) {
            $('.btn1').val(this.data[index]);
        },
        closeFun: function() {
            console.log('取消');
        },
    });
    $('.btn1').on('click', function() {
        hgS1.openSelectSwiper();
    });
	var hgS2= new selectSwiper({
		el: '.select_box2',
		mustSelect: true,
		data: [ 'A', 'B', 'AB', 'RH阴性血', 'O'],
		init: function(index) {
			if (index !== -1) {
				$('.btn2').val(this.data[index]);
			}
		},
		okFunUndefind: function() {
			//alert('必须选择一项');
			return false;
		},
		okFun: function(index) {
			$('.btn2').val(this.data[index]);
		},
		closeFun: function() {
			//alert("zzzzzzzzz")
			console.log('取消');
		},
	});
	$('.btn2').on('click', function() {
        hgS2.openSelectSwiper();
    });
    var hgS3= new selectSwiper({
        el: '.select_box3',
        mustSelect: true,
        data: ['初中', '高中', '中专', '大专', '本科','研究生','硕士','博士'],
        init: function(index) {
            if (index !== -1) {
                $('.btn3').val(this.data[index]);
            }
        },
        okFunUndefind: function() {
          //  alert('必须选择一项');
            return false;
        },
        okFun: function(index) {
            $('.btn3').val(this.data[index]);
        },
        closeFun: function() {
            console.log('取消');
        },
    });
    $('.btn3').on('click', function() {
        hgS3.openSelectSwiper();
    });
});